const webpack = require('webpack');
var Timestamp = '2.9.6';
const path = require('path');
function resolve(dir) {
	return path.join(__dirname, './', dir)
}
module.exports = {
    lintOnSave:false,
    devServer: {
        disableHostCheck: true,
        overlay:{
            warning:false,
            errors:false
        },
    },
    publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
    configureWebpack: {
            output: { // 输出重构  打包编译后的 文件名称  【模块名称.版本号】
                filename: `js/[name].${Timestamp}.js`,
                chunkFilename: `js/[name].${Timestamp}.js`,
            },
           plugins: [
        
              new webpack.ProvidePlugin({
                $:"jquery",
                jQuery:"jquery",
                "windows.jQuery":"jquery"
              })
        
            ]
        
        }

}
